var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        im.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        im.dispose()
    } else {
        if (status === a++) {
            im.askMenu_Bottom("你想获得什么增益？\r\n\r\n#L0#3倍经验值#l\r\n#L1#3倍道具掉落率#l", 32, 9010000)
        } else {
            if (status === a++) {
                im.gainItem(2001504, 5);
                im.gainItem(b == 0 ? 2450158 : 2023721, 1);
                im.gainItem(2438084, -1);
                im.dispose()
            }
        }
    }
};